﻿using System.Windows.Forms;

namespace NuSoft.SistemaGestionPersonal.WinFormsUI
{
    public partial class RestrictedAreasForm : Form
    {
        private FormClosingEventHandler _formClosing;

        public RestrictedAreasForm(FormClosingEventHandler formClosing)
        {
            _formClosing = formClosing;

            InitializeComponent();
        }

        private void RestrictedAreasForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            var handler = _formClosing;

            if (handler != null)
            {
                handler(sender, e);
            }
        }

        public void RefreshRestrictedAreas()
        {

        }
    }
}
